package com.gzx.plugin.tjzy.modular.excel.imports.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzx.plugin.tjzy.modular.excel.imports.bo.GzxExcelImportQueryBo;
import com.gzx.plugin.tjzy.modular.excel.imports.vo.GzxExcelImportVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author zjt
 * @description
 * @since 2025/5/8 14:03
 */
public interface GzxExcelImportService {

    /**
     * 分页查询
     *
     * @param excelImportQueryBo
     * @return
     */
    Page<GzxExcelImportVo> pageList(GzxExcelImportQueryBo excelImportQueryBo);

    /**
     * 上传Excel
     *
     * @param type
     * @param multipartFile
     * @throws IOException
     */
    void importExcel(Integer type, MultipartFile multipartFile) throws IOException;

    /**
     * 开始处理Excel
     *
     * @param id
     */
    void startProcess(Long id);

    /**
     * Excel处理流程
     */
    void excelProcess();
}
